/**
 * @file IIC.h
 * @author your name (you@domain.com)
 * @brief IIC外设驱动头文件
 * @version 0.1
 * @date 2024-03-31
 * 
 * @copyright Copyright (c) 2024
 * 
 */
#ifndef IIC_H_2024_3_18
#define IIC_H_2024_3_18
#include "stm32f10x.h"

void IIC1_Init(void);
void IIC_Per_WaitEvent(I2C_TypeDef* I2Cx,uint32_t I2C_EVENT);
void IIC_Per_WriteReg(I2C_TypeDef* I2Cx,uint8_t PerAddress,uint8_t RegAddress,uint8_t Data);
void IIC_Per_WriteReg_Coiled(I2C_TypeDef* I2Cx,uint8_t PerAddress,uint8_t RegAddress,uint8_t* ArrData,uint16_t Length);
uint8_t IIC_Per_ReadReg(I2C_TypeDef* I2Cx,uint8_t PerAddress,uint8_t RegAddress);




#endif
